<template>
  <VaCard v-if="logMessages.length > 0">
    <h1 class="mb-4 va-h5">正在运行的项目日志</h1>
    <div v-for="(log, index) in logMessages" :key="index" style="color: #888; padding-left: 15px">
      {{ log }}
    </div>
  </VaCard>
</template>

<script>
import { useLoggerStore } from '@/stores/logger' // 假设这是你的Pinia store路径
export default {
  data() {
    return {
      loggerStore: useLoggerStore(),
    }
  },
  computed: {
    logMessages() {
      return this.loggerStore.logs
    },
  },
  methods: {},
}
</script>
<style lang="scss"></style>
